﻿using System.ComponentModel.DataAnnotations;
using RuTracker.Interface.Login;

namespace RuTracker.MVC.Models.Login
{
    public class LoginModel
    {
        [DataType(DataType.Text) ]
        [Required(ErrorMessage = "User name cannot be empty")]
        [Display(Name = "User Name", Description = "Enter user name")]
        public string UserName { get; set; }

        [DataType(DataType.Password)]
        [Required(ErrorMessage = "Password cannot be empty")]
        [Display(Name = "Password", Description = "Enter password")]
        public string Password { get; set; }

        [DataType(DataType.Text)]
        public string CaptchaCodeValue { get; set; }

        public bool IsCaptchaRequired { get; set; }
    }
}